VT-d: print_vtd_entries() should cope with superpages
authorJan Beulich <jbeulich@suse.com>
Mon, 9 Mar 2015 13:00:19 +0000 (14:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Mar 2015 13:00:19 +0000 (14:00 +0100)
commit92cf6c2456dc428694ed95b6b1dec5bb84319790
tree7d9a3b369631183a1ab879ba3e30f796c3aebd35
parent4e59089ed90a11b9e30e67191789293bb07af686
VT-d: print_vtd_entries() should cope with superpages

Even if VT-d code alone (i.e. when not sharing tables with EPT) still
doesn't support superpages, this function - invoked upon DMA remapping
faults - needs to cope with such.

While at it also replace a few more plain numbers with suitable named
constants.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.h
xen/drivers/passthrough/vtd/utils.c